import { type MockMethod } from "vite-plugin-mock"
import m_student from "./modules/student"
const mock: Array<MockMethod> = [
    ...m_student,
    {
        // 接口路径
        url: '/mock/userinfo',
        // 接口方法
        method: 'get',
        // 返回数据
        response: ():IResult<string> => {
            return {
                status: 200,
                message: 'success',
                data: 'Hello World',
                errorMsg: true,
                timestamp: new Date()
            }
        }
    },
]

export default mock